package com.kuiandjie.service;

import com.kuiandjie.dao.EmployeeProjectDao;
import com.kuiandjie.entity.EmployeeProject;

public class EmployeeProjectService {
	
	private EmployeeProjectDao dao = new EmployeeProjectDao();

	public void createEmplPro(int id, int proId, int leader, String[] memberIds) {
		dao.insertEmplPro(proId, id, "admin");
		dao.insertEmplPro(proId, leader, "leader");
		dao.insertEmplProMeber(proId, memberIds);
	}

	public EmployeeProject getEPByEmpIdAndProId(int empId, String curpid) {
		return dao.findByEmpIdAndProId(empId, curpid);
	}

	

	/*public EmployeeProject getEmpProByTaskIdAndEmpId(int curTaskId, int nameId) {
		return dao.findByTaskIdAndEmpId(curTaskId, nameId);
	}*/
}
